<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group form-handle">
        <label class="control-label col-xs-12 col-sm-3">{:__('流水号')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="instancecode"  class="form-control" name="row[instancecode]" type="text" value="{$serial_no}" readonly>
        </div>
    </div>
    {if $fieldList.cname.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Cname')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.cname.write==0}disablefield{/if}">
            <input id="c-cname" data-rule="required"  class="form-control" name="row[cname]" type="text">
        </div>
    </div>
    {/if}
    {if $fieldList.jiafang.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('jiafang')}:</label><!--甲方-->
        <div class="col-xs-12 col-sm-7 {if $fieldList.jiafang.write==0}disablefield{/if}">
            <input id="c-jiafang" data-rule="required"  class="form-control" name="row[jiafang]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.partner.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Partner')}:</label><!--乙方-->
        <div class="col-xs-12 col-sm-7 {if $fieldList.partner.write==0}disablefield{/if}">
            <input id="c-partner" data-rule="required" class="form-control" name="row[partner]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.department_id.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Department_id')}:</label><!--牵头部门-->
        <div class="col-xs-12 col-sm-7 {if $fieldList.department_id.write==0}disablefield{/if}">
            <input id="c-department_id" data-rule="required"  data-source="department/index/selectpage" class="form-control selectpage" name="row[department_id]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.participating_departments.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Participating_departments')}:</label><!--主要参与部门-->
        <div class="col-xs-12 col-sm-7 {if $fieldList.participating_departments.write==0}disablefield{/if}">
            <select name="row[participating_departments][]" id="c-participating_departments" data-rule="" class="form-control selectpicker" multiple="">
                {foreach name='departmentList' key='key' item='vo'}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    {/if}
    {if $fieldList.type.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.type.write==0}disablefield{/if}">
            <select  id="c-type" data-rule="" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    {/if}
<!--    {if $fieldList.startdate.read==1}-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{:__('Startdate')}:</label>-->
<!--        <div class="col-xs-12 col-sm-7 {if $fieldList.startdate.write==0}disablefield{/if}">-->
<!--            <input id="c-startdate" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[startdate]" type="text" value="{:date('Y-m-d')}">-->
<!--        </div>-->
<!--    </div>-->
<!--    {/if}-->
<!--    {if $fieldList.enddate.read==1}-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{:__('Enddate')}:</label>-->
<!--        <div class="col-xs-12 col-sm-7 {if $fieldList.enddate.write==0}disablefield{/if}">-->
<!--            <input id="c-enddate" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[enddate]" type="text" value="{:date('Y-m-d')}">-->
<!--        </div>-->
<!--    </div>-->
<!--    {/if}-->
<!--    {if $fieldList.signingperiod.read==1}-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{:__('Signingperiod')}:</label>-->
<!--        <div class="col-xs-12 col-sm-7 {if $fieldList.signingperiod.write==0}disablefield{/if}">-->
<!--            <input id="c-signingperiod" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[signingperiod]" type="text" value="{:date('Y-m-d H:i:s')}">-->
<!--        </div>-->
<!--    </div>-->
<!--    {/if}-->
    {if $fieldList.contacts.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Contacts')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.contacts.write==0}disablefield{/if}">
            <input id="c-contacts" data-rule="required"  class="form-control" name="row[contacts]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.mobile.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.mobile.write==0}disablefield{/if}">
            <input id="c-mobile" data-rule="required"  class="form-control" name="row[mobile]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.counterpart.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Counterpart')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.counterpart.write==0}disablefield{/if}">
            <input id="c-counterpart" data-rule="required"  class="form-control" name="row[counterpart]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.counterpart_mobile.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Counterpart_mobile')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.counterpart_mobile.write==0}disablefield{/if}">
            <input id="c-counterpart_mobile" data-rule="required"  class="form-control" name="row[counterpart_mobile]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.remarks.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.remarks.write==0}disablefield{/if}">
            <textarea id="c-remarks" data-rule="required"  class="form-control " rows="5" name="row[remarks]" cols="50"></textarea>
        </div>
    </div>
    {/if}
    {if $fieldList.agreementfile.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Agreementfile')}:</label><!--协议草稿-->
        <div class="col-xs-12 col-sm-7 {if $fieldList.agreementfile.write==0}disablefield{/if}">
            <div class="input-group">
                <input id="c-agreementfile" data-rule="required"  class="form-control" size="50" name="row[agreementfile]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-agreementfile" class="btn btn-danger plupload" data-input-id="c-agreementfile" data-multiple="false" data-preview-id="p-agreementfile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-agreementfile" class="btn btn-primary fachoose" data-input-id="c-agreementfile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-agreementfile"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-agreementfile"></ul>
        </div>
    </div>
    {/if}
<!--    {if $fieldList.agreement.read==1}-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{:__('Agreement')}:</label>-->
<!--        <div class="col-xs-12 col-sm-7 {if $fieldList.agreement.write==0}disablefield{/if}">-->
<!--            <input id="c-agreement" data-rule="" class="form-control" name="row[agreement]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    {/if}-->
<!--    {if $fieldList.scansion.read==1}-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{:__('Scansion')}:</label>-->
<!--        <div class="col-xs-12 col-sm-7 {if $fieldList.scansion.write==0}disablefield{/if}">-->
<!--            <input id="c-scansion" data-rule="" class="form-control" name="row[scansion]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    {/if}-->
    <div class="form-group layer-footer">
        <div class="col-xs-12 col-sm-12" style="text-align: center;">
<!--            <button id='save' type="button" class="btn btn-success btn-embossed">保存</button>-->
            <button id='add' type="submit" class="btn btn-info btn-embossed">提交</button>
            <button type="button" id='flowchart' class="btn btn-warning btn-embossed">{:__('流程图')}</button>
        </div>
    </div>
</form>